package com.entity;

import java.math.BigDecimal;
import java.util.Date;

public class StorageRecord {
    private Long id;               // 主键ID
    private String srCode;         // 入库记录编码
    private Long supplierId;       // 供货商ID（外键）
    private String goodsName;      // 商品名称
    private String goodsDesc;      // 商品描述
    private String goodsUnit;      // 商品单位
    private BigDecimal goodsCount; // 入库数量
    private BigDecimal totalAmount;// 入库总额
    private Integer payStatus;     // 支付状态（1：未支付，2：已支付）
    private Long createdUserId;    // 创建人ID
    private Date createdTime;      // 创建时间
    private Long updatedUserId;    // 修改人ID
    private Date updatedTime;      // 修改时间
    private String supplierName;   // 供货商名称（需关联查询）

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public StorageRecord() {
    }

    public StorageRecord(Long id, String srCode, Long supplierId, String goodsName, String goodsDesc, String goodsUnit, BigDecimal goodsCount, BigDecimal totalAmount, Integer payStatus, Long createdUserId, Date createdTime, Long updatedUserId, Date updatedTime) {
        this.id = id;
        this.srCode = srCode;
        this.supplierId = supplierId;
        this.goodsName = goodsName;
        this.goodsDesc = goodsDesc;
        this.goodsUnit = goodsUnit;
        this.goodsCount = goodsCount;
        this.totalAmount = totalAmount;
        this.payStatus = payStatus;
        this.createdUserId = createdUserId;
        this.createdTime = createdTime;
        this.updatedUserId = updatedUserId;
        this.updatedTime = updatedTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSrCode() {
        return srCode;
    }

    public void setSrCode(String srCode) {
        this.srCode = srCode;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsDesc() {
        return goodsDesc;
    }

    public void setGoodsDesc(String goodsDesc) {
        this.goodsDesc = goodsDesc;
    }

    public String getGoodsUnit() {
        return goodsUnit;
    }

    public void setGoodsUnit(String goodsUnit) {
        this.goodsUnit = goodsUnit;
    }

    public BigDecimal getGoodsCount() {
        return goodsCount;
    }

    public void setGoodsCount(BigDecimal goodsCount) {
        this.goodsCount = goodsCount;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public Integer getPayStatus() {
        return payStatus;
    }

    public void setPayStatus(Integer payStatus) {
        this.payStatus = payStatus;
    }

    public Long getCreatedUserId() {
        return createdUserId;
    }

    public void setCreatedUserId(Long createdUserId) {
        this.createdUserId = createdUserId;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public Long getUpdatedUserId() {
        return updatedUserId;
    }

    public void setUpdatedUserId(Long updatedUserId) {
        this.updatedUserId = updatedUserId;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }

    @Override
    public String toString() {
        return "StorageRecord{" +
                "id=" + id +
                ", srCode='" + srCode + '\'' +
                ", supplierId=" + supplierId +
                ", goodsName='" + goodsName + '\'' +
                ", goodsDesc='" + goodsDesc + '\'' +
                ", goodsUnit='" + goodsUnit + '\'' +
                ", goodsCount=" + goodsCount +
                ", totalAmount=" + totalAmount +
                ", payStatus=" + payStatus +
                ", createdUserId=" + createdUserId +
                ", createdTime=" + createdTime +
                ", updatedUserId=" + updatedUserId +
                ", updatedTime=" + updatedTime +
                '}';
    }

    public StorageRecord(Long id, String srCode, Long supplierId, String goodsName, String goodsDesc, String goodsUnit, BigDecimal goodsCount, BigDecimal totalAmount, Integer payStatus, Long createdUserId, Date createdTime, Long updatedUserId, Date updatedTime, String supplierName) {
        this.id = id;
        this.srCode = srCode;
        this.supplierId = supplierId;
        this.goodsName = goodsName;
        this.goodsDesc = goodsDesc;
        this.goodsUnit = goodsUnit;
        this.goodsCount = goodsCount;
        this.totalAmount = totalAmount;
        this.payStatus = payStatus;
        this.createdUserId = createdUserId;
        this.createdTime = createdTime;
        this.updatedUserId = updatedUserId;
        this.updatedTime = updatedTime;
        this.supplierName = supplierName;
    }


}
